<!DOCTYPE html>
<html lang="cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    陆梓峰 24510206097
</body>

</html>
<script>
    let num1 = prompt("请输入第一个数字");
    let num2 = prompt("请输入第二个数字");
    let fuHao = prompt("请输入 + - * /符号");
    num1 = Number(num1);
    num2 = Number(num2);
    switch (fuHao) {
        case "+":
            document.write(num1 + num2); //(num1 * 1  + num2 * 1)
            break;
        case "-":
            document.write(num1 - num2);
            break;
        case "*":
            document.write(num1 * num2);
            break;
        case "/":
            document.write(num1 / num2);
            break;
        default:
            document.write("不在范围内");
            break;
    }
</script>